StupidBeauty
Read times:817Posted at:Mon Sep 30 22:18:39 2013
- no title specified

homebrew维基翻译:小技巧,Tips N' Tricks

为某个公式(formula)而预先下载(Pre-downloading)一个文件

某些时候(例如,在写本文章的时候,共军的GFW使得无法直连下载libgd的源代码包),使用其它的手段下载文件要比使用Homebrew 内建的手段快得多。例如,Erlang 提供了一个种子(Torrent),使得妳可以以4–5 倍于普通网页下载(HTTP)方式的速度来下载它。将所需的文件下载,并放置到 ~/Library/Caches/Homebrew 目录中,但是要注意一下文件名。Homebrew会把下载后的文件重命名为 {{ 公式名 }}-{{ 版本号 }} {{ formula name }}-{{ version }} )的形式。还是拿 Erlang 来举例,妳需要将下载后的文件从 otp_src_R13B03 重命名为 erlang-R13B03

新方法:

mv tarball压缩文件名 `brew --cache 公式名`

妳还可以使用 brew fetch 公式 命令来预先对文件进行缓存下载,这个过程也会显示它的MD5。这个功能可用于将公式升级到新版本。

未知美人

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4